using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using DHI.Projects.TangJTWest.Interfaces;

namespace DHI.Projects.TangJTWest.Data
{
    public class SystemLogInfoMapper : ClassMapper<SystemLogInfo>
    {
        public SystemLogInfoMapper()
        {
            Table("SYSTEMLOG");
            Map(f => f.Id).Column("id");
            Map(f => f.LogType).Column("logtype");
            Map(f => f.LogName).Column("logname");
            Map(f => f.LogTime).Column("logtime");
            Map(f => f.LogFrom).Column("logfrom");
            Map(f => f.UserName).Column("username");
            Map(f => f.IpSession).Column("ipsession");
            Map(f => f.LogContent).Column("logcontent");
            Map(f => f.InsertTime).Column("inserttime");
            Map(f => f.StateInfo).Column("stateinfo");
            Map(f => f.Isuse).Column("isuse");
            Map(f => f.Version).Column("version");
        }
    }
}